//package com.core.family.admin.utils;
//
//import com.core.family.admin.domain.dto.GroupDto;
//import com.core.family.admin.domain.po.SysGroup;
//import org.mapstruct.Mapper;
//import org.mapstruct.Mapping;
//import org.mapstruct.Mappings;
//import org.mapstruct.factory.Mappers;
//
//import java.util.List;
//
///**
// * @author hl
// * @version 1.0.0
// * @ClassName BeanCovertUtil.java
// * @Description 类描述  基于mapstruct 对象转换
// * @createTime 2023年02月03日 10:00:00
// */
//@Mapper
//public interface BeanCovertUtil {
//    BeanCovertUtil INSTANCE = Mappers.getMapper(BeanCovertUtil.class);
//
//    @Mappings({
//            @Mapping(source = "carName", target = "name"),
//            @Mapping(target = "createTime", expression = "java(com.guduyan.util.DateUtil.dateToStr(source.getCreateTime()))")
//    })
//    GroupDto toConvertVo(SysGroup source);
//
//    List<GroupDto> toConvertVos(List<SysGroup> source);
//}
